﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmRegistroMetasListado.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmRegistroMetasListado" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

    </script>
    <script type="text/javascript">
        function ShowMsj() {

            popupmsj.Show();
        }

    </script>
    <div class="main-header" style="width: 100%">
        <div class="main-titulo" style="width: 87%;">
            Registro de metas
        </div>
    </div>
    <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
    <table>
        <tr>
            <td>
                <dx:ASPxButton ID="btnActualizar" runat="server" Text="Actualizar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" OnClick="btnActualizar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    Width="100px">
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnReplicar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" OnClick="btnReplicar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    Text="Replicar" Width="100px">
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    OnClick="btnSalir_Click">
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <div class="content-form">
        <dx:ASPxRoundPanel ID="RPListaMetas" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
            GroupBoxCaptionOffsetY="-19px" HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
            </HeaderStyle>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <asp:UpdatePanel runat="server">
                        <ContentTemplate>
                            <table>
                                <tr>
                                    <td>
                                        Area:
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboArea" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            AutoPostBack="True" IncrementalFilteringMode="Contains" OnSelectedIndexChanged="cboArea_SelectedIndexChanged"
                                            Width="200px">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        &nbsp;Meta:
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboMeta" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            IncrementalFilteringMode="Contains" Width="350px">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        Año:
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboAnio" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            SelectedIndex="0">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="2010" Value="2010" />
                                                <dx:ListEditItem Text="2011" Value="2011" />
                                                <dx:ListEditItem Text="2012" Value="2012" />
                                                <dx:ListEditItem Text="2013" Value="2013" />
                                                <dx:ListEditItem Text="2014" Value="2014" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnConsultar" runat="server" Text="Consultar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            OnClick="btnConsultar_Click">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                            <dx:ASPxGridView ID="grdListaMetasVendedor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" KeyFieldName="id_vendedor"
                                OnAfterPerformCallback="grdListaMetasVendedor_AfterPerformCallback" ClientVisible="False">
                                <Settings ShowFooter="true" />
                                <TotalSummary>
                                    <dx:ASPxSummaryItem FieldName="Ene" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Feb" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Mar" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Abr" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="May" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Jun" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Jul" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Ago" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Sep" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Oct" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Nov" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Dic" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                </TotalSummary>
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="IdVendedor" VisibleIndex="1" FieldName="id_vendedor"
                                        Visible="False">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Nro.ruedas" VisibleIndex="2" FieldName="nro_ruedas">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Ene" VisibleIndex="3" FieldName="Ene">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Feb" VisibleIndex="4" FieldName="Feb">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Mar" VisibleIndex="5" FieldName="Mar">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Abr" VisibleIndex="6" FieldName="Abr">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="May" VisibleIndex="7" FieldName="May">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Jun" VisibleIndex="8" FieldName="Jun">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Jul" VisibleIndex="9" FieldName="Jul">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Ago" VisibleIndex="10" FieldName="Ago">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Sep" VisibleIndex="11" FieldName="Sep">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Oct" VisibleIndex="12" FieldName="Oct">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Nov" VisibleIndex="13" FieldName="Nov">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Dic" VisibleIndex="14" FieldName="Dic">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Vendedor" FieldName="nom_vendedor" VisibleIndex="0">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsPager PageSize="20">
                                </SettingsPager>
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                    <ProgressBar Height="21px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                            <dx:ASPxGridView ID="grdListaMetasOficina" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" KeyFieldName="id_vendedor"
                                OnAfterPerformCallback="grdListaMetasOficina_AfterPerformCallback" ClientVisible="False">
                                <Settings ShowFooter="true" />
                                <TotalSummary>
                                    <dx:ASPxSummaryItem FieldName="Ene" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Feb" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Mar" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Abr" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="May" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Jun" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Jul" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Ago" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Sep" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Oct" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Nov" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                    <dx:ASPxSummaryItem FieldName="Dic" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                </TotalSummary>
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="IdVendedor" VisibleIndex="1" FieldName="id_vendedor"
                                        Visible="False">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Nro.ruedas" VisibleIndex="2" FieldName="nro_ruedas">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Ene" VisibleIndex="3" FieldName="Ene">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Feb" VisibleIndex="4" FieldName="Feb">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Mar" VisibleIndex="5" FieldName="Mar">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Abr" VisibleIndex="6" FieldName="Abr">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="May" VisibleIndex="7" FieldName="May">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Jun" VisibleIndex="8" FieldName="Jun">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Jul" VisibleIndex="9" FieldName="Jul">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Ago" VisibleIndex="10" FieldName="Ago">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Sep" VisibleIndex="11" FieldName="Sep">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Oct" VisibleIndex="12" FieldName="Oct">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Nov" VisibleIndex="13" FieldName="Nov">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Dic" VisibleIndex="14" FieldName="Dic">
                                        <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                        <FooterCellStyle Font-Names="Arial Black">
                                        </FooterCellStyle>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Oficina" FieldName="nom_vendedor" VisibleIndex="0">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsPager PageSize="20">
                                </SettingsPager>
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                    <ProgressBar Height="21px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                            <dx:ASPxPopupControl ID="PCReplicaMetasVendedor" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" HeaderText="Replica metas vendedor" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                Width="500px" ClientInstanceName="PCReplicaMetasVendedor" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="10px" PaddingBottom="4px" PaddingRight="4px" PaddingTop="4px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="btnProcesarVendedor" runat="server" Text="Procesar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px" OnClick="btnProcesarVendedor_Click" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
PCReplicaMetasVendedor.Hide();
	e.processOnServer = true;
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	PCReplicaMetasVendedor.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td>
                                                    <dx:ASPxRoundPanel ID="RPReplicaMetas" runat="server" Width="50%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                                        GroupBoxCaptionOffsetY="-19px" HeaderText="Periodo origen" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                                        <HeaderStyle>
                                                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                        </HeaderStyle>
                                                        <PanelCollection>
                                                            <dx:PanelContent ID="PanelContent6" runat="server" SupportsDisabledAttribute="True">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label1" runat="server" Text="Año:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRAno" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="3">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="2010" Value="2010" />
                                                                                    <dx:ListEditItem Text="2011" Value="2011" />
                                                                                    <dx:ListEditItem Text="2012" Value="2012" />
                                                                                    <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                                                                                    <dx:ListEditItem Text="2014" Value="2014" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="Label2" runat="server" Text="Mes:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRmes" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="6">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="Enero" Value="01" />
                                                                                    <dx:ListEditItem Text="Febrero" Value="02" />
                                                                                    <dx:ListEditItem Text="Marzo" Value="03" />
                                                                                    <dx:ListEditItem Text="Abril" Value="04" />
                                                                                    <dx:ListEditItem Text="Mayo" Value="05" />
                                                                                    <dx:ListEditItem Text="Junio" Value="06" />
                                                                                    <dx:ListEditItem Text="Julio" Value="07" Selected="True" />
                                                                                    <dx:ListEditItem Text="Agosto" Value="08" />
                                                                                    <dx:ListEditItem Text="Septiembre" Value="09" />
                                                                                    <dx:ListEditItem Text="Octubre" Value="10" />
                                                                                    <dx:ListEditItem Text="Noviembre" Value="11" />
                                                                                    <dx:ListEditItem Text="Diciembre" Value="12" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxButton ID="btnFiltrarReplicaVen" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" OnClick="btnFiltrarReplicaVen_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                Text="Filtrar" Width="100px">
                                                                            </dx:ASPxButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dx:PanelContent>
                                                        </PanelCollection>
                                                    </dx:ASPxRoundPanel>
                                                </td>
                                                <td>
                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="50%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                                        GroupBoxCaptionOffsetY="-19px" HeaderText="Periodo destino" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                                        <HeaderStyle>
                                                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                        </HeaderStyle>
                                                        <PanelCollection>
                                                            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label5" runat="server" Text="Año:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRAnoVentaD" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="3">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="2010" Value="2010" />
                                                                                    <dx:ListEditItem Text="2011" Value="2011" />
                                                                                    <dx:ListEditItem Text="2012" Value="2012" />
                                                                                    <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                                                                                    <dx:ListEditItem Text="2014" Value="2014" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="Label6" runat="server" Text="Mes:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRMesVentaD" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="6">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="Enero" Value="01" />
                                                                                    <dx:ListEditItem Text="Febrero" Value="02" />
                                                                                    <dx:ListEditItem Text="Marzo" Value="03" />
                                                                                    <dx:ListEditItem Text="Abril" Value="04" />
                                                                                    <dx:ListEditItem Text="Mayo" Value="05" />
                                                                                    <dx:ListEditItem Text="Junio" Value="06" />
                                                                                    <dx:ListEditItem Text="Julio" Value="07" Selected="True" />
                                                                                    <dx:ListEditItem Text="Agosto" Value="08" />
                                                                                    <dx:ListEditItem Text="Septiembre" Value="09" />
                                                                                    <dx:ListEditItem Text="Octubre" Value="10" />
                                                                                    <dx:ListEditItem Text="Noviembre" Value="11" />
                                                                                    <dx:ListEditItem Text="Diciembre" Value="12" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            &nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dx:PanelContent>
                                                        </PanelCollection>
                                                    </dx:ASPxRoundPanel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <dx:ASPxGridView ID="grdMetasVendedor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" KeyFieldName="ID_VENDEDOR"
                                                        OnAfterPerformCallback="grdMetasVendedor_AfterPerformCallback">
                                                        <Settings ShowFooter="true" />
                                                        <TotalSummary>
                                                            <dx:ASPxSummaryItem FieldName="CANT" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                                            <dx:ASPxSummaryItem DisplayFormat="{0:#,##0}" FieldName="IMP_META" 
                                                                SummaryType="Sum" />
                                                        </TotalSummary>
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn FieldName="ID_UBIC_VEND_CAB" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="9">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_VENDEDOR" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="10">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ANIO" ShowInCustomizationForm="True" Visible="False"
                                                                VisibleIndex="11">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="MES" ShowInCustomizationForm="True" Visible="False"
                                                                VisibleIndex="6">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_GRUPO_ARTICULO" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="4">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Nro.rueda" FieldName="NRORUEDAS" ShowInCustomizationForm="True"
                                                                VisibleIndex="1">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cantidad" FieldName="CANT" ShowInCustomizationForm="True"
                                                                VisibleIndex="3">
                                                                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                                                    <ValidationSettings ErrorText="Valor inválido">
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </PropertiesTextEdit>
                                                                <FooterCellStyle Font-Names="Arial Black" ForeColor="Black">
                                                                </FooterCellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Vendedor" FieldName="NOM_VENDEDOR" ShowInCustomizationForm="True"
                                                                VisibleIndex="0">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Des.grupo" FieldName="NOM_ID_GRUPO_ARTICULO"
                                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Importe" FieldName="IMP_META" 
                                                                ShowInCustomizationForm="True" VisibleIndex="5">
                                                                <FooterCellStyle Font-Names="Arial Black">
                                                                </FooterCellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Moneda" FieldName="MONEDA" 
                                                                ShowInCustomizationForm="True" VisibleIndex="7">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="ID_MONEDA" FieldName="ID_MONEDA" 
                                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="8">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="PCReplicaMetasOficina" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" HeaderText="Replica metas oficina" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                Width="500px" ClientInstanceName="PCReplicaMetasOficina" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="10px" PaddingBottom="4px" PaddingRight="4px" PaddingTop="4px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="btnProcesarOficina" runat="server" Text="Procesar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px" OnClick="btnProcesarOficina_Click" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	PCReplicaMetasOficina.Hide();
	e.processOnServer = true;
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="ASPxButton5" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td>
                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="50%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                                        GroupBoxCaptionOffsetY="-19px" HeaderText="Fecha origen" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                                        <HeaderStyle>
                                                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                        </HeaderStyle>
                                                        <PanelCollection>
                                                            <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label3" runat="server" Text="Año:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRAnoOficina" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="3">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="2010" Value="2010" />
                                                                                    <dx:ListEditItem Text="2011" Value="2011" />
                                                                                    <dx:ListEditItem Text="2012" Value="2012" />
                                                                                    <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                                                                                    <dx:ListEditItem Text="2014" Value="2014" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="Label4" runat="server" Text="Mes:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRMesOficina" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="6">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="Enero" Value="01" />
                                                                                    <dx:ListEditItem Text="Febrero" Value="02" />
                                                                                    <dx:ListEditItem Text="Marzo" Value="03" />
                                                                                    <dx:ListEditItem Text="Abril" Value="04" />
                                                                                    <dx:ListEditItem Text="Mayo" Value="05" />
                                                                                    <dx:ListEditItem Text="Junio" Value="06" />
                                                                                    <dx:ListEditItem Text="Julio" Value="07" Selected="True" />
                                                                                    <dx:ListEditItem Text="Agosto" Value="08" />
                                                                                    <dx:ListEditItem Text="Septiembre" Value="09" />
                                                                                    <dx:ListEditItem Text="Octubre" Value="10" />
                                                                                    <dx:ListEditItem Text="Noviembre" Value="11" />
                                                                                    <dx:ListEditItem Text="Diciembre" Value="12" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxButton ID="btnFiltrarReplicaOfi" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" OnClick="btnFiltrarReplicaOfi_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                Text="Filtrar" Width="100px">
                                                                            </dx:ASPxButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dx:PanelContent>
                                                        </PanelCollection>
                                                    </dx:ASPxRoundPanel>
                                                </td>
                                                <td>
                                                    <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" Width="50%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                                        GroupBoxCaptionOffsetY="-19px" HeaderText="Fecha destino" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                                        <HeaderStyle>
                                                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                        </HeaderStyle>
                                                        <PanelCollection>
                                                            <dx:PanelContent ID="PanelContent3" runat="server" SupportsDisabledAttribute="True">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label7" runat="server" Text="Año:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRAnoOficinaD" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="3">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="2010" Value="2010" />
                                                                                    <dx:ListEditItem Text="2011" Value="2011" />
                                                                                    <dx:ListEditItem Text="2012" Value="2012" />
                                                                                    <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                                                                                    <dx:ListEditItem Text="2014" Value="2014" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="Label8" runat="server" Text="Mes:"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <dx:ASPxComboBox ID="cboRMesOficinaD" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                SelectedIndex="6">
                                                                                <Items>
                                                                                    <dx:ListEditItem Text="Enero" Value="01" />
                                                                                    <dx:ListEditItem Text="Febrero" Value="02" />
                                                                                    <dx:ListEditItem Text="Marzo" Value="03" />
                                                                                    <dx:ListEditItem Text="Abril" Value="04" />
                                                                                    <dx:ListEditItem Text="Mayo" Value="05" />
                                                                                    <dx:ListEditItem Text="Junio" Value="06" />
                                                                                    <dx:ListEditItem Text="Julio" Value="07" Selected="True" />
                                                                                    <dx:ListEditItem Text="Agosto" Value="08" />
                                                                                    <dx:ListEditItem Text="Septiembre" Value="09" />
                                                                                    <dx:ListEditItem Text="Octubre" Value="10" />
                                                                                    <dx:ListEditItem Text="Noviembre" Value="11" />
                                                                                    <dx:ListEditItem Text="Diciembre" Value="12" />
                                                                                </Items>
                                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                </LoadingPanelImage>
                                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                                </LoadingPanelStyle>
                                                                                <ButtonStyle Width="13px">
                                                                                </ButtonStyle>
                                                                            </dx:ASPxComboBox>
                                                                        </td>
                                                                        <td>
                                                                            &nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </dx:PanelContent>
                                                        </PanelCollection>
                                                    </dx:ASPxRoundPanel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <dx:ASPxGridView ID="grdMetasOficina" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" KeyFieldName="ID_OFI_VTA"
                                                        OnAfterPerformCallback="grdMetasOficina_AfterPerformCallback">
                                                        <TotalSummary>
                                                            <dx:ASPxSummaryItem FieldName="CANT" DisplayFormat="{0:#,##0}" SummaryType="Sum" />
                                                            <dx:ASPxSummaryItem DisplayFormat="{0:#,##0}" FieldName="IMP_META" 
                                                                SummaryType="Sum" />
                                                        </TotalSummary>
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn Caption="Oficina" FieldName="NOM_OFICINA" ShowInCustomizationForm="True"
                                                                VisibleIndex="0">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cantidad" FieldName="CANT" ShowInCustomizationForm="True"
                                                                VisibleIndex="3">
                                                                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                                                                    <ValidationSettings ErrorText="Valor inválido">
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </PropertiesTextEdit>
                                                                <FooterCellStyle Font-Names="Arial Black" ForeColor="Black">
                                                                </FooterCellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Des.grupo" FieldName="NOM_ID_GRUPO_ARTICULO"
                                                                ShowInCustomizationForm="True" VisibleIndex="2">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Nro.rueda" FieldName="NroRuedas" ShowInCustomizationForm="True"
                                                                VisibleIndex="1">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_GRUPO_ARTICULO" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="9">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="MES" ShowInCustomizationForm="True" Visible="False"
                                                                VisibleIndex="10">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ANIO" ShowInCustomizationForm="True" Visible="False"
                                                                VisibleIndex="11">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_OFI_VTA" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="12">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_CANAL_DISTRIB" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="6">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="ID_UBIC_VEND_CAB" ShowInCustomizationForm="True"
                                                                Visible="False" VisibleIndex="4">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Importe" FieldName="IMP_META" 
                                                                ShowInCustomizationForm="True" VisibleIndex="5">
                                                                <FooterCellStyle Font-Names="Arial Black">
                                                                </FooterCellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Moneda" FieldName="MONEDA" 
                                                                ShowInCustomizationForm="True" VisibleIndex="7">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="ID_MONEDA" FieldName="ID_MONEDA" 
                                                                ShowInCustomizationForm="True" Visible="False" VisibleIndex="8">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" />
                                                        <Settings ShowFooter="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                                CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                EnableViewState="False" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                                Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                                </LoadingPanelImage>
                                <CloseButtonStyle>
                                    <Paddings Padding="0px" />
                                </CloseButtonStyle>
                                <ContentStyle>
                                    <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                                    <Paddings PaddingLeft="7px"></Paddings>
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="Panelpopup" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td colspan="2">
                                                                <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td align="center" style="width: 215px">
                                                                <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Aceptar" AutoPostBack="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
    </div>
</asp:Content>
